<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- 
    Document   : pacienete.jsp
    Created on : 28/09/2014, 10:35:53 PM
    Author     : Familia
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>MAS | Pacientes</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="Content/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>        
        <!-- font Awesome -->
        <link href="Content/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

        <link href="Content/css/AdminLTE.css" rel="stylesheet" type="text/css"/>

    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">                          
            <figure class="logo">
                <div class="user-panel">
                    <div class="pull-left image">
                        <a href="pages/dashboard.jsp">
                            <img src="Content/img/avatar3.png" class="img-circle" alt="User Image" />                            
                        </a>
                    </div>
                    <div class="pull-left info">
                        <p>Hola, Jane</p>
                        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                    </div>
                </div>   
            </figure>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-envelope"></i>
                                <span class="label label-success">4</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">Tienes 4 Mensjes</li>
                            </ul>
                            <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-warning"></i>
                                <span class="label label-warning">10</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">Tienes 10 Notificaciones</li>
                            </ul>
                        </li>
                        <!-- Tasks: style can be found in dropdown.less -->
                        <li class="dropdown tasks-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-tasks"></i>
                                <span class="label label-danger">9</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">Tienes 9 tareas programadas</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Design some buttons
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Create a nice theme
                                                    <small class="pull-right">40%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">40% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    Some task I need to do
                                                    <small class="pull-right">60%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">60% Complete</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">Ver todas las tareas</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span>Jane Doe <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <img src="Content/img/avatar3.png" class="img-circle" alt="User Image" />
                                    <p>
                                        Jane Doe - Médico
                                        <small>Miembro desde Nov. 2012</small>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Perfil</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="#" class="btn btn-default btn-flat">Cerrar Sesión</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- search form -->
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Buscar..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li class="active">
                            <a href="../dashboard.jsp">
                                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="glyphicon glyphicon-user"></i>
                                <span> Paciente </span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li>
                                    <a href="ConsultaPaciente.do"><i class="fa fa-angle-double-right"></i> Paciente</a>
                                </li>
                                <li>
                                    <a href="ConsultarHistoriaClinica.do"><i class="fa fa-angle-double-right"></i> Historia Clinica</a>
                                </li>                                
                                <li>
                                    <a href="#"><i class="fa fa-angle-double-right"></i> Emergencias</a>
                                </li>
                                <li>
                                    <a href="#"><i class="fa fa-angle-double-right"></i> Signos Vitales</a>
                                </li>
                                <li>
                                    <a href="#"><i class="fa fa-angle-double-right"></i> Encuestas</a>
                                </li>
                                <li>
                                    <a href="#"><i class="fa fa-angle-double-right"></i> Sensores</a>
                                </li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>Centro de Asistencia</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="#"><i class="fa fa-angle-double-right"></i> General</a></li>     
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-phone"></i> <span>Centro de Atención</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="#"><i class="fa fa-angle-double-right"></i> General Elements</a></li>                                
                            </ul>
                        </li>                        
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>
            <aside class="right-side">
                <section class="content-header">
                    <h1> Gestión de Pacientes </h1>
                    <ol class="breadcrumb">
                        <li><a href="dashboard.jsp"><i class="fa fa-dashboard"></i> Inicio</a>
                        </li>
                        <li><a href="paciente.jsp"> Paciente</a></li>
                        <li class="active"> Gestión Pacientes</li>                        
                    </ol>
                </section>
                <section class="content">
                    <div class="tabbable">
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="active">
                                <a href="#Pacientes" role="tab" data-toggle="tab"> Pacientes</a>
                            </li>
                            <li>
                                <a href="#crearPaciente" role="tab" data-toggle="tab"> Crear Paciente</a>
                            </li>
                        </ul>
                        <!-- Tab panes -->
                        <div class="tab-content active">
                            <div class="tab-pane active" id="Pacientes">
                                <div class="box">
                                    <div class="box-header margin"> 
                                        <h3> CONSULTAR PACIENTES</h3> 
                                    </div>
                                    <div class="box-body table-responsive ">
                                        <div id="example1_wrapper" class="dataTables_filter form-inline"  role="grid">
                                            <div class="row">
                                                <div class="col-xs-6">
                                                    <div id="example1-length" class="dataTables_length">
                                                        <label>
                                                            <select name="example1-length" size="1" aria-contrlos="example1">
                                                                <option value="10" selected="selected"> 10 </option>
                                                                <option value="50"> 50 </option>
                                                                <option value="75"> 75 </option>
                                                                <option value="100"> 100 </option>
                                                            </select>
                                                            Datos por pagina
                                                        </label>
                                                    </div>
                                                </div>
                                                <div class="col-xs-6">
                                                    <div class="dataTables_filter" id="example1_filter">
                                                        <label>Search: <input type="text" aria-controls="example1">
                                                        </label>
                                                    </div>
                                                </div>                                                
                                            </div>
                                            <table id="example1" class="table table-bordered table-striped dataTable" aria-describedby="example1_info">
                                                <thead>
                                                    <tr role="row">
                                                        <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="example1" 
                                                            rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending " 
                                                            style="width: 172px;">Apellido1</th><th class="sorting" role="columnheader" tabindex="0" 
                                                                                                aria-controls="example1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" 
                                                                                                style="width: 250px;">Apellido2</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="example1" 
                                                                                                rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" 
                                                                                                style="width: 230px;">Nombre</th><th class="sorting" role="columnheader" tabindex="0" 
                                                                                             aria-controls="example1" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" 
                                                                                             style="width: 147px;">Identificacion</th><th class="sorting" role="columnheader" tabindex="0" 
                                                                                                     aria-controls="example1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" 
                                                                                                     style="width: 103px;">Editar</th>
                                                    </tr>
                                                </thead>
                                                <tfoot>
                                                    <tr><th rowspan="1" colspan="1">Apellido1</th>
                                                        <th rowspan="1" colspan="1">Apellido2</th>
                                                        <th rowspan="1" colspan="1">Nombre)</th>
                                                        <th rowspan="1" colspan="1">Identificacion</th>
                                                        <th rowspan="1" colspan="1">Eitar</th></tr>
                                                </tfoot>
                                                <tbody role="alert" aria-live="polite" aria-relevant="all">
                                                    <c:forEach var="item" items="${requestScope.pacientes}">
                                                        <tr>
                                                            <td>
                                                                ${item.getApellido1()}
                                                            </td> 
                                                            <td>
                                                                ${item.getApellido2()}
                                                            </td>
                                                            <td>
                                                                ${item.getNombre()}
                                                            </td>
                                                            <td>
                                                                ${item.getNumeroID()}
                                                            </td>
                                                            <td>
                                                                <a href="#"> Editar </a>
                                                            </td>
                                                        </tr> 
                                                    </c:forEach>                                                    
                                                </tbody>
                                            </table><!--/Table-->
                                        </div>  <!--/Div Wrapper-->
                                    </div>  <!--/ Box-Boddy Responsive-->                                
                                </div> <!--/Box-->                             
                            </div><!--/TabPane-->
                            <div class="tab-pane" id="crearPaciente"> 
                                <div class="box">
                                    <div class="box-header margin"> 
                                        <h3> CREAR PACIENTE</h3> 
                                    </div>
                                    <div class="box-body table-responsive ">
                                        <div id="example1_wrapper" class="dataTables_filter form-inline"  role="grid">                                            

                                            <form class="form-horizontal" role="form" method="post" action="CrearPaciente.do">
                                                <div class="row">                                                    
                                                    <div class="col-md-4"> 
                                                        <div class="box-body margin">
                                                            <div class="form-group">
                                                                <label class=" control-label">1 Apellido</label>
                                                                <input type="text" class="form-control" name="txtApellido1">
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label"> Nacimiento </label>
                                                                <div class="input-group" id="datetimepicker"> 
                                                                    <input name="txtFechaNacimiento" type="text" class="form-control" placeholder="yyyy/mm/dd"/>
                                                                    <div class="input-group-addon">
                                                                        <i class="fa fa-calendar"></i>
                                                                    </div>
                                                                </div>                              
                                                            </div>  
                                                            <div class="form-group">
                                                                <label class="control-label"> Genero </label>
                                                                <div class="form-control">
                                                                    <input type="radio" name="radioGenero"  value="0" class="form-control"> M
                                                                    <input type="radio" name="radioGenero"  value="1" class="form-control"> F
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label">Barrio</label>                                                            
                                                                <input type="text" class="form-control" name="txtBarrio">                                                            
                                                            </div>
                                                            <div class="form-group">
                                                                <label class=" control-label"> Telefono</label>
                                                                <div class="input-group"> 
                                                                    <input type="text" class="form-control" name="txtNumeroTelefonico"/>
                                                                    <div class="input-group-addon">
                                                                        <i class="fa fa-phone"></i>
                                                                    </div>
                                                                </div>
                                                            </div>                                                            
                                                        </div>                                                        
                                                    </div>

                                                    <div class="col-md-4">
                                                        <div class="box-body margin">
                                                            <div class="form-group">
                                                                <label class="control-label">2 Apellido</label>
                                                                <input type="text" class="form-control" name="txtApellido2">
                                                            </div>
                                                            <div class="form-group">                                                                
                                                                <label class="control-label">Tipo de identificacion</label>  
                                                                <br/>
                                                                <select name="radioTipoID" class="form-control">
                                                                    <option value="0" >Cedula             </option>
                                                                    <option value="1" >Tarjeta Identeidad  </option>
                                                                    <option value="2" >Registro Civil      </option>                                                     
                                                                    <option value="3" >Cedula Extrangera   </option>  
                                                                </select>
                                                            </div>  
                                                            <div class="form-group">
                                                                <label class="control-label">Dirección</label>
                                                                <input type="text" class="form-control" name="txtDireccion" >
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label ">Celular</label>
                                                                <div class="input-group"> 
                                                                    <input type="text" class="form-control" name="txtNumeroMovil"/>
                                                                    <div class="input-group-addon">
                                                                        <i class="fa fa-mobile"></i>
                                                                    </div>
                                                                </div>
                                                            </div><!-- /.form group -->
                                                            <div class="box-body">
                                                                <div class="form-group">
                                                                    <label class="control-label">RH</label>
                                                                    <select name="selectRH" class="form-control" >
                                                                        <option value="1">O+  </option>
                                                                        <option value="2">O-  </option>
                                                                        <option value="3">A+  </option>
                                                                        <option value="4">A-  </option>
                                                                        <option value="5">B+  </option>
                                                                        <option value="6">B-  </option>
                                                                        <option value="7">AB+ </option>
                                                                        <option value="8">AB- </option>                                                                    
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-4">
                                                        <div class="box-body margin">
                                                            <div class="form-group">
                                                                <label class="control-label">Nombre</label>
                                                                <input type="text" class="form-control" name="txtNombre">
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label">Numero de identificacion</label>
                                                                <input type="text" class="form-control" name="txtNumeroID" placeholder="">
                                                            </div>
                                                            <div class="form-group">
                                                                <label control-label>Ciudad</label>                                                            
                                                                <input type="text" class="form-control" name="txtCiudad" placeholder="">
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label">Email</label>                                                            
                                                                <input type="email" class="form-control" name="txtEmail">                                                            
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div><!--/row-->
                                                <div class="row">
                                                    <div class="col-lg-6">
                                                        <div class="box-body margin">
                                                            <div class="form-group margin">
                                                                <label class="control-label textAreaCentro">Observaciones</label>
                                                                <div>
                                                                    <textarea  class="form-control" rows="5" cols="75" name="txtObesrvaciones" placeholder="Escribir observaciones aquí"></textarea>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-6">
                                                        <div class="box-body margin">
                                                            <div class="form-group margin">
                                                                <label for="photo" class="col-md-12 ficha">Incluya una foto</label>
                                                                <div class="col-md-12 col-xs-3 col-sm-3">
                                                                    <div class="drag-drop">
                                                                        <input type="file" multiple="multiple" id="photo" />
                                                                        <span class="fa-stack fa-2x">
                                                                            <i class="fa fa-cloud fa-stack-2x bottom pulsating"></i>
                                                                            <i class="fa fa-circle fa-stack-1x top medium"></i>
                                                                            <i class="fa fa-arrow-circle-up fa-stack-1x top"></i>
                                                                        </span>
                                                                        <span class="desc">Pulse aquí para añadir archivos</span>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-lg-12">
                                                        <div class="form-group">
                                                            <div class="col-lg-offset-4  ficha">
                                                                <button type="button" onclick='window.print();' class="btn btn-primary">Imprimir</button>
                                                                <button type="reset" class="btn btn-primary"> Borrar Campos </button>
                                                                <button type="submit" class="btn btn-primary">Guardar</button>
                                                            </div>                                                            
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>  
                                        </div><!--/dataTables-->
                                    </div>  <!--/table-responsive-->                 
                                </div> <!--/box-->
                            </div><!--/tab-Pane XrearPaciente-->    
                        </div><!--/Box-->
                </section><!-- /.content -->
            </aside>

            <!-- jQuery 2.0.2 -->
            <script src="js/ajax.googleapis.com_ajax_libs_jquery_2.0.2_jquery.min.js" type="text/javascript"></script>        
            <!-- Bootstrap -->        
            <script src="js/bootstrap.min.js" type="text/javascript"></script>
            <!-- AdminLTE App -->
            <script src="js/AdminLTE/app.js" type="text/javascript"></script>

    </body>
    <footer>

    </footer>
</html>

